<template>
  <div class="footer">
    <h1>我是Footer</h1>
    <p>Count的值是{{ count }}</p>
    <p>价格是{{ price }}</p>
  </div>
</template>

<script>
import {mapState} from 'vuex'
export default {
  name: "Footer",
  computed : {
    ...mapState({
        count:'count',
        price: 'price'
    })
  }
};
</script>

<style>
.footer {
  margin: 30px;
  background: palevioletred;
}
</style>